package com.zhuang.designpattern.abstractfactory;

import java.util.concurrent.TimeUnit;

/**
 * description: CacheService
 * date: 2022/9/10 16:06
 * author: Zhuang
 * version: 1.0
 */
public interface CacheService {

    String get(final String key, int redisType);

    void set(String key, String value, int redisType);

    void set(String key, String value, long timeout, TimeUnit timeUnit, int redisType);

    void del(String key, int redisType);

}
